package cn.itsource.org.mapper;

import cn.itsource.org.domain.Employee;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 部门表的持久层
 *
 * spring生成代理mapper实现
 *
 * mybatis第一天学的
 *
 * UserMapper userMapper = sqlSession.getMapper(UserMapper.class)
 * sout userMapper.getClass   proxy$14534
 *
 * Mapper映射器
 */
public interface EmployeeMapper extends Mapper<Employee> {
    //基础的crud方法由继承获得

    /**
     * 查询所有的部门经理
     */
    List<Employee> findManagers();

}
